//
//  UILabe+Extent.swift
//  我的微博
//
//  Created by gongjunna on 15/8/1.
//  Copyright © 2015年 itheima. All rights reserved.
//

import UIKit

extension UILabel {

  convenience  init(color:UIColor ,fontSize:CGFloat  ){
        self.init()
    
        textColor = color
    
        font = UIFont.systemFontOfSize(fontSize)
    }

}
extension UIButton {
    convenience init (title: String ,imageNamae:String  ,fontSize :CGFloat = 12 ,titleColor : UIColor = UIColor.darkGrayColor()){
    self.init()
    
    setTitle(title, forState: UIControlState.Normal)
    setImage(UIImage(named: imageNamae), forState: UIControlState.Normal)
    titleLabel?.font = UIFont.systemFontOfSize(fontSize)
    setTitleColor(titleColor, forState: UIControlState.Normal)
    }

}
